﻿<%@ Page Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="UpdateDisbursementList.aspx.cs" Inherits="PresentationLayer.View.StoreClerk.UpdateDisbursementList" enableEventValidation="false"%>



<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">
        
        
            <uc1:mainMenu ID="mainMenu1" runat="server" />
        
        
        </td>
        <td>

             <center><h2><u>Update Disbursement List</u></h2></center>
    
        <br />
        <br />
       
             <asp:Panel ID="Panel1" runat="server">

                 <br />
                 <div style="padding-left:20px;">
                 &nbsp;
                 <asp:DropDownList ID="ddDepartment" runat="server" AppendDataBoundItems="True" 
                     AutoPostBack="True" 
                     onselectedindexchanged="ddDepartment_SelectedIndexChanged" Visible="False">
                     <asp:ListItem Value="0">All</asp:ListItem>
                 </asp:DropDownList>
                 <asp:GridView ID="gvDisbursementList" runat="server" 
                     AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                     GridLines="None" Width="657px" 
                     onrowupdating="gvDisbursementList_RowUpdating" AllowPaging="True" 
                     EmptyDataText="No Disbursement List Available" 
                     onpageindexchanging="gvDisbursementList_PageIndexChanging" PageSize="15">
                     <AlternatingRowStyle BackColor="White" />
                     <Columns>
                         <asp:TemplateField HeaderText="No">
                             <ItemTemplate>
                                 <%# Container.DataItemIndex + 1 %>
                             </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="Department Name">
                             <ItemTemplate>
                                 <asp:Label ID="Label1" runat="server" Text='<%# Bind("deptName") %>'></asp:Label>
                             </ItemTemplate>
                             <EditItemTemplate>
                                 <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("deptName") %>'></asp:TextBox>
                             </EditItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="Collection Point">
                             <ItemTemplate>
                                 <asp:Label ID="Label2" runat="server" Text='<%# Bind("place") %>'></asp:Label>
                             </ItemTemplate>
                             <EditItemTemplate>
                                 <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("place") %>'></asp:TextBox>
                             </EditItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField HeaderText="Status">
                             <ItemTemplate>
                                 <asp:DropDownList ID="DropDownList1" runat="server">
                                     <asp:ListItem Value="Collected"></asp:ListItem>
                                     <asp:ListItem Value="Uncollected"></asp:ListItem>
                                 </asp:DropDownList>
                             </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField ShowHeader="False">
                             <ItemTemplate>
                                 <asp:Button ID="btnUpdate" runat="server" CausesValidation="False" 
                                     CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                     CommandName="Update" Text="Update" />
                             </ItemTemplate>
                         </asp:TemplateField>
                         <asp:TemplateField Visible="false">
                             <ItemTemplate>
                                 <asp:Label ID="hdnDisId" runat="server" Text='<%# Eval("disbursId") %>' />
                             </ItemTemplate>
                         </asp:TemplateField>
                     </Columns>
                     <EditRowStyle BackColor="#2461BF" />
                     <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                     <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                     <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                     <RowStyle BackColor="#EFF3FB" />
                     <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                     <SortedAscendingCellStyle BackColor="#F5F7FB" />
                     <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                     <SortedDescendingCellStyle BackColor="#E9EBEF" />
                     <SortedDescendingHeaderStyle BackColor="#4870BE" />
                 </asp:GridView>
                 </div>
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                 <br />
                     </div>
             </asp:Panel>
    
        <br />
        <asp:Label ID="Label3" runat="server"></asp:Label>


 
        </td> </tr></table>
</asp:Content>